package org.bluedream.core.module.entity.warehouse;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.bluedream.comm.base.OrgPageEntity;

/**
 * @ClassName WareHouse
 * @Description TODO
 * @Author foxsand
 * @Data 2021-08-24 15:21
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "warehouse")
public class WareHouse extends OrgPageEntity<WareHouse> {
    private static final long serialVersionUID = 248798943325323600L;

    @NonNull
    private String code;
    @NonNull
    private String name;

    public WareHouse(String id) {
        this.id = id;
    }

    public WareHouse(Long limit , Long pageSize) {
        this.limit = limit;
        this.page = pageSize;
    }
}
